import wxRequest from '../../index'
enum DashBoaredAPI {
  categoryGoodsCount = '/goods/category/count',
  categoryGoodsSale = '/goods/category/sale',
  categoryGoodsFavor = '/goods/category/favor',
  addressGoodsSale = '/goods/address/sale',
  categoryGoodsMount = '/goods/amount/list'
}
export function getCategoryGoodsCount() {
  return wxRequest.get({
    url: DashBoaredAPI.categoryGoodsCount,
    showLoading: false
  })
}
export function getCategoryGoodsSale() {
  return wxRequest.get({
    url: DashBoaredAPI.categoryGoodsSale,
    showLoading: false
  })
}
export function getCategoryGoodsFavor() {
  return wxRequest.get({
    url: DashBoaredAPI.categoryGoodsFavor,
    showLoading: false
  })
}
export function getCategoryAddressSale() {
  return wxRequest.get({
    url: DashBoaredAPI.addressGoodsSale,
    showLoading: false
  })
}
export function getCategoryGoodsAmount() {
  return wxRequest.get({
    url: DashBoaredAPI.categoryGoodsMount,
    showLoading: false
  })
}
